﻿// videoitem.h
#include <QQuickFramebufferObject>
#include "videorenderer.h"

class VideoItem : public QQuickFramebufferObject {
    Q_OBJECT
public:
    Renderer* createRenderer() const override;

public slots:
    void updateFrame(const QImage &frame);

private:
    mutable VideoRenderer *m_renderer = nullptr;
};
